<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>css3自定义动画</title>
	<style>
		div{
			width: 200px;
			height: 200px;
			position: absolute;
			background-color: red;
			animation:  move 2s;
		}
		@keyframes move{
			from{
				left: 0;
			}
			to{
				left: 400px;
			}
		}
	</style>
</head>
<body>
	<div></div>
</body>
</html>  